<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.js"></script>
  </head>
  <body>
    <div id="div">123</div>
    <button id="btn">btn</button>
    <script>
      //0_ 1 2 3 4 5

      let obj = {
        hi(age) {
          return age;
        },
      };

      // need think
      let res = _.mapValues(obj, (value) => {
        return (...arg) => {
          return value(...arg);
        };
      });

      let div = document.getElementById("div");
      console.dir(div);
      // let btn =document.getElementById('btn')
      // console.dir(btn);

      div.onclick = (e) => {
        console.log(e);
      };
      // btn.onclick = (e)=>{
      //   console.log(e);
      // }
    </script>
  </body>
</html>
